package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 社群成员实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_community_member")
@Schema(name = "YunkeCommunityMember", description = "社群成员实体")
public class YunkeCommunityMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "记录ID")
    private Long id;

    @Schema(description = "社群ID")
    private Long communityId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户昵称")
    private String userNickname;

    @Schema(description = "用户头像")
    private String userAvatar;

    @Schema(description = "成员角色（1群主 2管理员 3普通成员）")
    private Integer memberRole;

    @Schema(description = "成员等级")
    private Integer memberLevel;

    @Schema(description = "成员积分")
    private Integer memberPoints;

    @Schema(description = "加入方式（1申请加入 2邀请加入 3付费加入）")
    private Integer joinType;

    @Schema(description = "邀请人ID")
    private Long inviterId;

    @Schema(description = "邀请人昵称")
    private String inviterName;

    @Schema(description = "加入费用")
    private BigDecimal joinFee;

    @Schema(description = "支付订单号")
    private String payOrderNo;

    @Schema(description = "成员状态（0正常 1禁言 2踢出）")
    private Integer memberStatus;

    @Schema(description = "禁言结束时间")
    private Long muteEndTime;

    @Schema(description = "是否置顶（0否 1是）")
    private Boolean isTop;

    @Schema(description = "群名片")
    private String memberCard;

    @Schema(description = "自定义标签")
    private String customTags;

    @Schema(description = "最后活跃时间")
    private Long lastActiveTime;

    @Schema(description = "发言次数")
    private Integer messageCount;

    @Schema(description = "获得点赞数")
    private Integer likeCount;

    @Schema(description = "贡献值")
    private Integer contributionValue;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "加入时间")
    private Long joinTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 